#pragma once

#include "cSpriteObj.h"
#include "DirectInput.h"
#include "cPlayerAirplane.h"
#include "DirectInput.h"

class cUserInterface
{
public:
	cUserInterface(void);
	~cUserInterface(void);

	void CreateAll( char* CreateName );
	bool Updatelogo();
	void UpdateInit();
	void UpdateGagebar();
	void ResultScore();
	void UpdateScore( char* Strike );
	void Update( char *State, cPlayerAirplane* p_User );
	void Draw( char * State );

public:
	cSpriteObj*		mp_Background;
	cSpriteObj*		mp_logo;
	cSpriteObj*		mp_Init;
	cSpriteObj*		mp_Play;
	cSpriteObj*		mp_Select;
	cSpriteObj*		mp_PressString;
	cSpriteObj*		mp_Player_num[3];
	cSpriteObj*		mp_Gage;
	cSpriteObj*		mp_Gagebar;
	cSpriteObj*		mp_Number[10];
	cSpriteObj*		mp_Bomb[5];

private:
	LPD3DXSPRITE	 mSprite;
	double						 DrawDelay[2];
	bool							 bDraw;
	
	double						iScoreDelay[2];
	double						iGageDelay[4];
	double						Score;

	int							One;
	int							Ten;
	int							Hundred;
	int							Thousand;
	int							Ten_Thousand;
	int							Hundred_Thousand;
	int							Million;
	int							Ten_Million;

	enum { INIT = 1, START = 2, END = 3 } GAMESTATE;
};
